<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@include file="../../mytags.jsp" %>
<t:base type="jquery"></t:base>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport"
          content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no"/>
    <title>故障代码查询</title>
    <script type="text/javascript" charset="utf-8">
        mui.init();
    </script>
    <script>
var _hmt = _hmt || [];
(function() {
  var hm = document.createElement("script");
  hm.src = "https://hm.baidu.com/hm.js?a2f6adcec5d52290d2cb3deea0aca05c";
  var s = document.getElementsByTagName("script")[0]; 
  s.parentNode.insertBefore(hm, s);
})();
</script>
    <style>
    	.logo{
			width: 100%;
		    height: 8rem;
		    background: url(${webRoot }/images/faultCode_logo.jpg) no-repeat center 2.15rem;
		    background-size: auto 80px;
    	}
    </style>
</head>
<body >
<div class="logo"></div>
<div class="mui-content" style="background: none; margin-top: 20px; width: 100%;">
    <div style="padding: 10px 10px; ">
        <div class="mui-content" style="width: 100%;border-radius:5px;">
            <form id='login-form' class="mui-input-group" action="javascript:redirectQuery();">
                <div class="mui-input-row mui-input-row1" style="height: 50px;border-radius:3px;">
                    <input type="text" class="mui-input" value="${searchCode}" placeholder="请输入故障代码号" name="faultCode" id="faultCode" style="width: 80%;height: 50px;" maxlength="100">
                    <label style="float: right; width: 50px; text-align: left; padding-top: 14px;">
                        <a href="javascript:redirectQuery();"><img src="${webRoot }images/sach.png" style="width: 25px;"></a>
                    </label>
                </div>
            </form>
        </div>
        <div class="mui-clearfix"></div>
    </div>
</div>
<div class="mui-clearfix"></div>
<div class="mui-content-padded" style="margin-bottom: 20px; text-align: center;height:38px;margin-top: 20px;">
    <a class="mui-btn mui-btn-block mui-btn-primary" style="padding: 5px 0;width:100%;font-family:Microsoft YaHei;" href="javascript:redirectQuery()">查&nbsp;询</a>
</div>
<div style="line-height:30px;padding:5px 5px 5px 15px;background: none;font-size:14px;font-family:Microsoft YaHei;color:#4b4949;">
    <h3 style="font-size: 21px;">温馨提示 :</h3>如需更多服务请拨打中影巴可24小时服务热线<br/><a href="tel:400-88-22726" style="color:blue">400-88-22726</a>咨询
</div>
<script type="text/javascript">
$(function(){
	if('${searchCode}' != ''){
		mui.alert("没有查询到此故障代码");
	}
});

function redirectQuery() {
	var faultCode = $("#faultCode").val();
	if(faultCode != ""){
		window.location.href = "cbsFaultCodeController.do?wxGzdmcxList&faultCode=" + faultCode;
	}
}
</script>
</body>
</html>